<{include file ="header.tpl"}>
<{include file ="navibar.tpl"}>
<{include file ="sidebar.tpl"}>
<!-- TPLSTART 以上内容不需更改，保证该TPL页内的标签匹配即可 -->

<{$osadmin_action_alert}>
<{$osadmin_quick_note}>
<div class="btn-toolbar">
	<a href="sms_add.php" class="btn btn-primary"><i class="icon-plus"></i> 卡</a>
	<a href="sms_input.php" class="btn btn-primary"><i class="icon-plus"></i> 导入</a>
	<a href="sms.php?method=export&card_no=<{$_GET.card_no}>&open_phone=<{$_GET.open_phone}>&start_time=<{$_GET.start_time}>" class="btn btn-primary"><i class="icon-plus"></i> 导出</a>
	<a href="assign_sms.php" class="btn btn-primary"><i class="icon-plus"></i> 预分配</a>
	<a href="qr_sms.php" class="btn btn-primary"><i class="icon-plus"></i> 一维码</a>
	<a href="sms_static.php" class="btn btn-primary"><i class="icon-plus"></i> 统计</a>
</div>
<form class="form_search"  action="" method="GET" style="margin-bottom:0px">
	<div style="float:left;margin-right:5px">
		<label>查询所有请留空</label>
		<input type="text" name="card_no" value="<{$_GET.card_no}>" placeholder="sim卡号" > 
	</div>
	<div style="float:left;margin-right:5px">
		<label>查询所有请留空</label>
		<input type="text" name="open_phone" value="<{$_GET.open_phone}>" placeholder="开通手机号" > 
	</div>
	<div style="float:left;margin-right:5px">
		<label>查询所有请留空</label>
		<input type="date" name="start_time" value="<{$_GET.start_time}>" placeholder="开始时间" > 
	</div>
<!-- 	<div style="float:left;margin-right:5px">
		<label>查询所有请留空</label>
		<input type="date" name="end_time" value="<{$_GET.end_time}>" placeholder="结束时间" > 
	</div> -->
	<div class="btn-toolbar" style="padding-top:25px;padding-bottom:0px;margin-bottom:0px">
		<button type="submit" class="btn btn-primary">检索</button>
	</div>
	<div style="clear:both;"></div>
</form>
<div class="block">
	<a href="#page-stats" class="block-heading" data-toggle="collapse">卡列表</a>
	<div id="page-stats" class="block-body collapse in">
		<table class="table table-striped">
			<thead>
			<tr>
				<th>#</th>
				<th>卡号</th>
				<th>运营商</th>
				<th>条码</th>
				<th>天数</th>
				<th>有效期</th>
				<th>开通手机号</th>
				<th>开通时间</th>
				<th>渠道</th>
				<th width="80px">操作</th>
			</tr>
			</thead>
			<tbody>							  
			<{foreach name=module from=$modules item=module}>
				 
				<tr>
				 
				<td><{$module.id}></td>
				<td><{$module.card_no}></td>
				<td><{$module.operator}></td>
				<td><{$module.phone}></td>
				<td><{$module.card_type}></td>
				<td><{$module.dead_time}></td>
				<td><{$module.open_phone}></td>
				<td><{$module.open_time}></td>	
				<td><{$module.channel}></td>

				<td>
				<{if $module.open_phone != null}>
				<a href="sms_view.php?id=<{$module.id}>" title= "修改" ><i class="icon-glass"></i></a>
				&nbsp;
				<{/if}>
				<a href="sms_modify.php?id=<{$module.id}>" title= "修改" ><i class="icon-pencil"></i></a>
				&nbsp;
				<a data-toggle="modal" href="#myModal"  title= "删除" ><i class="icon-remove" href="sms.php?method=del&id=<{$module.id}>#myModal" data-toggle="modal" ></i></a>
				
				</td>
				</tr>
			<{/foreach}>
		  </tbody>
		</table>  
	</div>
</div>

<!---操作的确认层，相当于javascript:confirm函数--->
<{$osadmin_action_confirm}>
	
<!-- TPLEND 以下内容不需更改，请保证该TPL页内的标签匹配即可 -->
<{include file="footer.tpl" }>